Errata for Programming Pearls, Second Edition

pp2e.jpg

The second printing had no changes from the first printing.

The following bugs need to be fixed in upcoming printings.

p. 38, line 23. The clause cantbe(m, n) should be cantbe(m, n-1).

p. 121, line 11: The inequality sign is reversed; the test should read “if u-l < cutoff”. (The test is correct in the function qsort4 later on the page.)

p. 129, line -14: The variables “m” and “n” are swapped. The sentence should read: “Next, suppose that m is ten million and n is 231.”

p. 203, line 12: Change “commutative” to “associative”.

p. 224, line -2: Remove the phrase “or print n + 1 – i rather than i”.

p. 241, line -13: Insert “p” after “*”, so the line reads

unsigned int hash(char *p)

http://www.cs.bell-labs.com/cm/cs/pearls/errata.html

Author: Shi Shougang

Created: 2015-03-05 Thu 23:21

Emacs 24.3.1 (Org mode 8.2.10)

Validate